
generate:
	python gen.py

test:  
	cat input.txt | ./mapper.py | sort -n | ./reducer.py > output.txt

run: 
	rm -rf output
	../../bin/hadoop jar ../../share/hadoop/tools/lib/hadoop-streaming-2.6.0.jar -input input.txt -output output -mapper ./mapper.py -reducer ./reducer.py
	gnuplot -e 'plot "output/part-00000"; pause 3'

clean:
	rm -rf output
	rm -rf output.txt
	rm -rf input.txt
	rm -f *~


       	

